<template>
  <footer class="front-footer">
    <div class="footer-content">
      <!-- 主要内容区域 -->
      <div class="footer-main">
        <div class="footer-section about-section">
          <div class="footer-logo">
            <i class="el-icon-shopping-cart-2"></i>
            <span class="footer-logo-text">农产品融销一体平台</span>
          </div>
          <p class="footer-slogan">
            新鲜农产品，产地直供，让您吃得放心、健康、美味
          </p>
        </div>
      </div>

      <!-- 认证信息区域 -->
      <div class="footer-certifications">
        <div class="cert-item">
          <i class="el-icon-circle-check"></i>
          <span>品质保证</span>
        </div>
        <div class="cert-item">
          <i class="el-icon-truck"></i>
          <span>全国配送</span>
        </div>
        <div class="cert-item">
          <i class="el-icon-service"></i>
          <span>7×24小时服务</span>
        </div>
        <div class="cert-item">
          <i class="el-icon-medal"></i>
          <span>认证农场</span>
        </div>
      </div>

    </div>
  </footer>
</template>

<script>
export default {
  name: 'FrontFooter'
}
</script>

<style scoped>
.front-footer {
  background: linear-gradient(135deg, #e8f5e9 0%, #fffde7 100%);
  padding: 36px 0 18px;
  margin-top: 48px;
  border-top: 1.5px solid #c8e6c9;
  border-radius: 32px 32px 0 0;
  box-shadow: 0 8px 32px rgba(103,194,58,0.10);
}

.footer-content {
  max-width: 1200px;
  margin: 0 auto;
  padding: 0 20px;
}

.footer-main {
  display: flex;
  justify-content: center;
  margin-bottom: 20px;
}

/* Logo 和关于我们部分 */
.about-section {
  max-width: 600px;
  text-align: center;
}

.footer-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 12px;
}

.footer-logo i {
  display: none;
}

.footer-logo::before {
  content: '';
  display: inline-block;
  width: 32px;
  height: 32px;
  margin-right: 8px;
  background: url('data:image/svg+xml;utf8,<svg width="32" height="32" viewBox="0 0 32 32" fill="none" xmlns="http://www.w3.org/2000/svg"><ellipse cx="16" cy="16" rx="14" ry="8" fill="%23e8f5e9"/><path d="M7 24 Q16 4 25 24" stroke="%2367c23a" stroke-width="2.5" fill="none"/><ellipse cx="16" cy="16" rx="3" ry="6" fill="%23a5d6a7"/></svg>') no-repeat center/contain;
  vertical-align: middle;
}

.footer-logo-text {
  font-size: 20px;
  font-weight: 700;
  color: #388e3c;
  letter-spacing: 1px;
  font-family: 'Segoe UI', 'PingFang SC', 'Hiragino Sans GB', 'Arial', sans-serif;
  text-shadow: 0 2px 8px #388e3c22;
}

.footer-slogan {
  color: #388e3c;
  line-height: 1.5;
  margin-bottom: 16px;
  font-size: 15px;
  font-weight: 500;
}

.footer-contact {
  color: #388e3c;
  display: flex;
  justify-content: center;
  gap: 30px;
  font-size: 14px;
}

.contact-item {
  display: flex;
  align-items: center;
}

.contact-item i {
  color: #67C23A;
  margin-right: 6px;
  font-size: 16px;
}

/* 认证信息部分 */
.footer-certifications {
  display: flex;
  justify-content: space-around;
  padding: 24px 0;
  border-top: 1.5px solid #c8e6c9;
  border-bottom: 1.5px solid #c8e6c9;
  margin-bottom: 24px;
  background: rgba(232,245,233,0.5);
  border-radius: 18px;
  box-shadow: 0 2px 8px #a5d6a722;
}

.cert-item {
  display: flex;
  align-items: center;
  color: #43a047;
  font-size: 15px;
  font-weight: 600;
}

.cert-item i {
  font-size: 22px;
  margin-right: 6px;
}

.cert-item span {
  font-size: 15px;
  font-weight: 600;
}

/* 版权信息部分 */
.footer-bottom {
  text-align: center;
  color: #8d6e63;
  font-size: 13px;
}

.copyright p {
  margin: 4px 0;
}

/* 响应式布局 */
@media (max-width: 768px) {
  .front-footer {
    padding: 20px 0 10px;
    margin-top: 30px;
    border-radius: 18px 18px 0 0;
  }

  .footer-contact {
    flex-direction: column;
    gap: 8px;
    align-items: center;
  }

  .footer-certifications {
    flex-wrap: wrap;
    gap: 15px;
    padding: 15px 0;
    border-radius: 10px;
  }

  .cert-item {
    width: calc(50% - 10px);
    justify-content: center;
  }
}
</style> 